package com.Controller;
import com.Service.SmsService;
import com.common.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
/**
 * 短信发送接口层
 */
@Controller
@RequestMapping("/smsC")
public class SmsController {
    @Autowired
    private SmsService smsService;

    @PostMapping("/sendSmsCode")
    @ResponseBody
    public Result sendSmsCode(@RequestParam String phoneNumber, @RequestParam String bizType) {
        return smsService.send(phoneNumber, bizType);
    }
}
